/**
 * @Author YuanYuan
 * @Date 2022/5/11
 * @Time 10:44
 */

class Student {
    public String name;
    public double score;
    public int age;
    public  static String classes  = "2001";

    public Student (String name,double score,int age) {
        this.name = name;
        this.age = age;
        this.score = score;
        System.out.println("这是一个构造函数");
    }
    public void upClass(Student this) {
        //System.out.println(this);
        System.out.println("普通方法");
        classes = "2002";
    }
    public static void staticClass() {

        System.out.println("静态方法");
    }

    {
        System.out.println("实例代码块");
    }

    static
    {
        classes = "2003";
        System.out.println("静态代码块");
    }
    public static void goname() {
        int name1 = 3;
        System.out.println("静态方法成员"+name1);
    }
}
public class Test {
    public void fun() {
        ;
    }

    public static void main(String[] args) {
        //Student student4 = new Student("4",99,17);
        System.out.println(Student.classes);
        System.out.println(Student.classes);
    }
    public static void main1(String[] args) {
        Student student = new Student("111",99,19);
        Student student1 = new Student("222",89,16);
        System.out.println(student.classes);
       // Student.staticClass();
        Test test = new Test();
        test.fun();
//        Student student2 = new Student("123",99,18);
//        student2.staticClass(student2);
//        System.out.println(student2.name);
    }
}
